package org.jsola.hr.provider.impl;

import lombok.extern.slf4j.Slf4j;
import org.jsola.core.Page;
import org.jsola.hr.provider.IServiceLogProviderService;
import org.jsola.log.query.ServiceLogQuery;
import org.jsola.log.service.impl.ServiceLogServiceImpl;
import org.jsola.log.vo.ServiceLogListVO;
import org.jsola.user.core.TokenUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author lyh
 */
@Service("hrServiceLogProviderService")
@Slf4j
public class ServiceLogProviderServiceImpl implements IServiceLogProviderService {

    @Autowired
    private ServiceLogServiceImpl serviceLogService;

    @Override
    public Page<ServiceLogListVO> selectServiceLog(ServiceLogQuery serviceLogQuery, TokenUser tokenUser){
        return serviceLogService.selectPage(serviceLogQuery, tokenUser.getSiteId());
    }
}
